import request from '@/utils/request'

// 查询学习中心列表
export function listStudyCenter(query) {
  return request({
    url: '/api/studyCenter/list',
    method: 'get',
    params: query
  })
}

// 查询学习中心详细
export function getStudyCenter(studyId) {
  return request({
    url: '/api/studyCenter/' + studyId,
    method: 'get'
  })
}

// 新增学习中心
export function addStudyCenter(data) {
  return request({
    url: '/api/studyCenter/add',
    method: 'post',
    data: data
  })
}

// 修改学习中心
export function updateStudyCenter(data) {
  return request({
    url: '/api/studyCenter/update',
    method: 'POST',
    data: data
  })
}

// 删除学习中心
export function delStudyCenter(studyId) {
  return request({
    url: '/api/studyCenter/delete/' + studyId,
    method: 'GET'
  })
}
